import request from '@/utils/request'

// 查询原始考勤表列表
export function listOriginalAttend(query) {
  return request({
    url: '/hr/originalAttend/list',
    method: 'get',
    params: query
  })
}

// 查询原始考勤表详细
export function getOriginalAttend(id) {
  return request({
    url: '/hr/originalAttend/' + id,
    method: 'get'
  })
}

// 新增原始考勤表
export function addOriginalAttend(data) {
  return request({
    url: '/hr/originalAttend',
    method: 'post',
    data: data
  })
}

// 修改原始考勤表
export function updateOriginalAttend(data) {
  return request({
    url: '/hr/originalAttend',
    method: 'put',
    data: data
  })
}

// 删除原始考勤表
export function delOriginalAttend(id) {
  return request({
    url: '/hr/originalAttend/' + id,
    method: 'delete'
  })
}
